﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewProfile.aspx.cs" Inherits="ProcolDemo.ProfViewProfile"
    EnableEventValidation="false" MasterPageFile="~/MasterPage.master" Title="My Profile" %>

<%@ Import Namespace="ProcolDemo.User" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PHtitle" runat="Server">
    ProCol | Professor - Profile
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PHCSS" runat="Server">
    <link rel="stylesheet" href="CSS/index.css" type="text/css" media="screen" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PHsidebar" runat="Server">
    <img id="profilpic" src="images/unknown-person.png" alt="Profil Picture" />
    <div id="profilemessage">
        <%--<h1>
            Something</h1>--%>
    </div>
    <div class="submit">
        <a href="ModifyPersInfo.aspx">Modify personal Info</a><br />
        <br />
        <a href="ChangePassword.aspx">Change password</a><br />
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PHcontent" runat="Server">
    <div class="mycollaboration">
        <div class="contenttext">
            <h1>
                <asp:Label ID="lblProfProfileInfo" runat="server" /></h1>
            
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30%" valign="top" align="left">
                            <span class="h2content">
                                <asp:Label ID="AUTO_PROF_PROFILE_NAME" runat="server" />: </span>
                        </td>
                        <td width="70%" valign="top" align="left">
                            <img style="vertical-align: middle" runat="server" id="imgProfGender" src="~/images/male.png" />&nbsp;&nbsp;<asp:Label
                                ID="lblProfName" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td width="30%" valign="top" align="left">
                            <span class="h2content">
                                <asp:Label ID="AUTO_PROF_PROFILE_EMAIL" runat="server" />: </span>
                        </td>
                        <td width="70%" valign="top" align="left">
                            <a id="ProfprofileEmail" runat="server" style="font-weight: bold; color: blue">
                                <asp:Label ID="lblProfEmail" runat="server" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td width="30%" valign="top" align="left">
                            <span class="h2content">
                                <asp:Label ID="AUTO_PROF_PROFILE_AGE" runat="server" />: </span>
                        </td>
                        <td width="70%" valign="top" align="left">
                            <asp:Label ID="lblProfAge" runat="server" />
                            <asp:ImageButton ID="imgProfCalendar" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/calendar.png"
                                OnClick="imgCalendar_Click" Visible="False" />
                            <asp:TextBox ID="txtProfNewDOB" runat="server" Visible="False" onkeypress="return StopInput(event);"
                                onkeydown="return StopInput(event);" />
                            <ajaxToolkit:CalendarExtender ID="txtProfNewDOB_CalendarExtender" runat="server" TargetControlID="txtProfNewDOB"
                                OnClientDateSelectionChanged="calendarExtenderPostback">
                            </ajaxToolkit:CalendarExtender>
                            <asp:Button ID="btnProfCalendar" runat="server" OnClick="btnCalendar_Click" Font-Bold="True"
                                UseSubmitBehavior="False" Visible="False" />
                        </td>
                    </tr>
                    <tr>
                        <td width="30%" valign="top" align="left">
                            <span class="h2content">
                                <asp:Label ID="AUTO_PROF_PROFILE_RATING" runat="server" />: </span>
                        </td>
                        <td width="70%" valign="top" align="left">
                            <ajaxToolkit:Rating runat="server" ID="ProfRating" MaxRating="5" CurrentRating="0"
                                CssClass="ratingStar" StarCssClass="ratingItem" WaitingStarCssClass="Saved" FilledStarCssClass="Filled"
                                EmptyStarCssClass="Empty" Height="16px" Width="135px" ReadOnly="true" />
                        </td>
                    </tr>
                    <tr>
                        <td width="30%" valign="top" align="left">
                            <span class="h2content">
                                <asp:Label ID="AUTO_PROF_PROFILE_MAJOR" runat="server" />: </span>
                        </td>
                        <td width="70%" valign="top" align="left">
                            <asp:TextBox ID="txtProfMajors" runat="server" BorderWidth="1px" Width="300px" autocomplete="off"
                                onkeypress="return CkKeyPress(event);" onkeydown="return CkKeyPress(event);"
                                Font-Size="12px" AutoCompleteType="Disabled" AutoPostBack="True" OnTextChanged="txtProfMajors_TextChanged"
                                BackColor="White"></asp:TextBox>
                            <ajaxToolkit:AutoCompleteExtender ID="txtProfMajors_AutoCompleteExtender" runat="server"
                                DelimiterCharacters="" Enabled="True" ServicePath="~/Proxies/MajorsProxy.asmx"
                                ServiceMethod="GetMajors" TargetControlID="txtProfMajors" MinimumPrefixLength="1"
                                CompletionInterval="1">
                            </ajaxToolkit:AutoCompleteExtender>
                        </td>
                    </tr>
                </table>
           
            <p>
            </p>
        </div>
    </div>
    <div class="contentContainerFollow">
        <div class="contenttext">
            <h1>
                <asp:Label ID="AUTO_PROF_PROFILE_PROJECTS" runat="server" /></h1>
            <p>
                <span class="h2content">
                    <asp:Label ID="AUTO_PROF_PROFILE_PROJECTLIST" runat="server" />: </span>
                <br />
                <br />
                <asp:DataList ID="dataProfProjects" runat="server" RepeatColumns="2" HorizontalAlign="Center"
                    Width="50%">
                    <ItemTemplate>
                        <a href="ProfViewProject.aspx?Pid=<%# ((IntString)Container.DataItem).Int %>" title="<%# ((IntString)Container.DataItem).Str %>"
                            style="font-variant: small-caps">
                            <%# ((IntString)Container.DataItem).Str %></a>
                    </ItemTemplate>
                </asp:DataList>
            </p>
        </div>
    </div>
    <div class="contentContainerFollow">
        <div class="contenttext">
            <h1>
                <asp:Label ID="AUTO_PROF_PROFILE_IDEAS" runat="server" /></h1>
            <p>
                <span class="h2content">
                    <asp:Label ID="AUTO_PROF_PROFILE_NUMBERIDEAS" runat="server" />:
                    <asp:Label ID="lblProfNumIdeas" runat="server" /></span>
            </p>
        </div>
    </div>
</asp:Content>
